import Vue from 'vue'

import MyHome from "../views/MyHome.vue";
import MyType from "../views/MyType.vue";
import MyOrder from "../views/MyOrder.vue";
import My from "../views/My.vue";

import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [{
        path: "/",
        redirect: "/home",
    }, {
        path: "/home",

        component: MyHome
    },
    {
        path: "/type",
        component: MyType
    },
    {
        path: "/order",
        component: MyOrder
    }, {
        path: "/my",
        component: My
    }
]
const router = new VueRouter({
    routes
})
export default router